package com.jdz.gxq.info.admin.smallloan.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.smallloan.bo.Smallloan;

public interface SmallloanService {
	
	/**
	 * Smallloan检索分页用，查询记录条数
	 * @return
	 */
	public int getSmallloansCount(String enterpriseName);
	
	/**
	 * Smallloan检索
	 * @return
	 */
	public List<Smallloan> getSmallloans(Map<String, Object> params);
	
	/**
	 * 追加Smallloan
	 * @param smallloan
	 */
	public void insertSmallloan(Smallloan smallloan);
	
	/**
	 * 更新Smallloan
	 * @param smallloan
	 */
	public void updateSmallloan(Smallloan smallloan);
	
	/**
	 * 通过id得到smallloan
	 * @param id
	 * @return
	 */
	public Smallloan getSmallloanById(int id);
	
	/**
	 * 删除Smallloan
	 * @param smallloan
	 */
	public void deleteSmallloan(int id);
	
	/**
	 * 验证smallloanName是否重复
	 * (重复返回:false)
	 * flag: 1 追加时验证
	 * flag: 2 更新时验证
	 */
	public boolean checkSmallloanName(Smallloan paramSmallloan, int flag);

}
